const { each, toPasic } = require("../../lib/tools")

/**
 * 
 * @param {*} param0 
 */
module.exports = function({step1}){
    each(step1,(entry,key)=>{
        entry.getOne = getOne(entry);
    })
}

function getOne({base:{object}}){
    return {
        functionName: `select${toPasic(object)}ById`
    }
}